<?php
namespace app\api\model;


/**
 * 门店
 */
class Store extends BaseModel
{
	
	protected $hidden = ['create_time', 'name', 'from'];

//	public function img()
//	{
//		return $this->belongsTo('Image', 'img_id', 'id');
//	}

    protected function base($query)
    {
        $query->order('create_time desc');
    }

    public function getImgAttr($value,$data)
	{
		return $this->prefixImgUrl($value,$data);
	}

	public static function getStoreinfo()
	{
		$store = self::select();

		return $store;
	}
}
